﻿using System.IO;

namespace Longbow.Net
{
    /// <summary>
    /// Socket 配置项基类
    /// </summary>
    public abstract class SocketOptions
    {
        /// <summary>
        /// 设置/获得 是否启用日志功能 默认 true
        /// </summary>
        public bool Enabled { get; set; } = true;

        /// <summary>
        /// 设置/获得 日志文件路径，Windows 默认为Logs\\Socket.log Mac/Linux 默认为Socket/Log.log
        /// </summary>
        public string LogFileName { get; set; } = $"Socket{Path.DirectorySeparatorChar}Log.log";
    }
}
